import request from './request'

export const getDoctor = (doctorname) => {
  return request({
    url: 'doctor/office/' + doctorname,
    method: 'GET'
  })
}

export const getWorktime = (doctorname, nowDate) => {
  return request({
    url: 'workday/' + doctorname + '/' + nowDate,
    method: 'GET'
  })
}

export const postYuyue = (data) => {
  return request({
    url: 'doctor/workday2/',
    method: 'post',
    data
  })
}

export const addRecode = (data) => {
  return request({
    url: 'doctor/patient2/',
    method: 'post',
    data
  })
}
